package test.kit.hutool;

import cn.hutool.core.collection.ListUtil;
import cn.hutool.core.util.StrUtil;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Builder
@Data
public class UserInfo {

    private String name;
    private Integer age;
    private String fTag;

    public static List<UserInfo> list() {
        return ListUtil.toList(
                UserInfo.builder()
                        .name("zhangsan")
                        .age(34).build(),
                UserInfo.builder()
                        .name("zhangsan")
                        .age(null).build(),
                UserInfo.builder()
                        .name("wangwu")
                        .age(35).build(),
                UserInfo.builder()
                        .name("zhaoliu")
                        .age(31).build()
        );
    }

    public String sayHi(String name) {
        System.out.println(">>>>>>");
        return StrUtil.format("你好, {}", name);
    }
}
